local skill = fk.CreateSkill{
    name = "roulette_medicine_skill",
}
Fk:loadTranslationTable{
    ["#roulette_medicine_skill"] = "是否对自己使用，50%概率回复2点体力，或失去1点体力",
}
skill:addEffect("cardskill",{
    prompt = "#roulette_medicine_skill",
    mod_target_filter = function(self, player, to_select)
        return to_select == player and to_select.maxHp > to_select.hp
    end,
    can_use = Util.CanUseToSelf,
    on_effect = function(self, room, effect)
        room:broadcastPlaySound("./packages/water_wegame/audio/effect/medicine")
        if math.random() > 0.5 then
            if effect.to.hp < effect.to.maxHp and not effect.to.dead then
                room:recover{
                    who = effect.to,
                    num = 2,
                    card = effect.card,
                    recoverBy = effect.from,
                    skillName = skill.name,
                }
            end
        else
            room:loseHp(effect.to,1,skill.name)
        end
    end,
})
return skill